﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using DotSpatial.Topology;

using DotSpatial.Data;

namespace HAGISV2
{
    [Serializable]
    public abstract class VectorShape:FShape
    {

        public VectorShape(string id):base(id)
        {
            this._groupName = "Default";


           

            //_parts = new List<VectorShapePart>();
 
        }

        public VectorShape(string id, string groupName)
            : base(id)
        {
            if (groupName != null && groupName != "")
                this._groupName = groupName;
            else
                this._groupName = "Default";
        }


        /// <summary>
        /// 用于存储实际的图形体
        /// </summary>

        protected IBasicGeometry _geometry;

        public IBasicGeometry Geometry
        {
            get { return _geometry; }
           // set { _geometry = value; }
        }
        


        string _groupName;

        /// <summary>
        /// 图形所属的分组名称，针对一个图层包含多个分组的情况
        /// </summary>
        public string GroupName
        {
            get { return _groupName; }
            set
            {
                _groupName = value;

            }
        }



       

       //protected List<VectorShapePart> _parts;

       // /// <summary>
       // /// 局部部分
       // /// </summary>
       // public List<VectorShapePart> Parts
       // {
       //     get { return _parts; }
            
       // }



      
    }
}
